package org.springblade.modules.platform.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
public class GetDegreeImplementationVO {

	private List<EquipmentVO>lists;
	private Long total;

	@NoArgsConstructor
	@Data
	public static class EquipmentVO{
		/**
		 * 设备名称
		 */
		@ApiModelProperty(value = "设备名称")
		private String equipmentName;
		/**
		 * 设备编号
		 */
		@ApiModelProperty(value = "设备编号")
		private String equipmentId;


		/**
		 * 设备编号
		 */
		@ApiModelProperty(value = "读取时间")
		@JsonSerialize(nullsUsing = NullSerializer.class)
		private Long readTime;

		/**
		 * 所属机构
		 */
		@ApiModelProperty(value = "所属机构")
		private String affiliatedInstitutions;
		/**
		 * 所属机构编号
		 */
		@ApiModelProperty(value = "所属机构编号")
		private String affiliatedInstitutionsCode;

		@ApiModelProperty(value = "属性值")
		private List<AttributeValue> attributeValueListVO;
		@NoArgsConstructor
		@Data
		public static class AttributeValue{
			private String key;
			private String name;
			private String value;
			@ApiModelProperty(value = "单位")
			private String unit;

		}
	}


}
